package com.shengyin.ec.model.dao.alliance;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.shengyin.ec.model.dao.BaseDaoImpl;
import com.shengyin.ec.model.entity.AllianceDetail;

@Repository("allianceDetailDao")
public class AllianceDetailDaoImpl extends BaseDaoImpl<AllianceDetail> implements AllianceDetailDao {
	
	public List<AllianceDetail> getAllianceDetailByCompanyId(long id){
		List<AllianceDetail> allianceDetailList =  super.find("from AllianceDetail where companyId='"+id+"'");
		
		return allianceDetailList;
	}
	
}